package router

import (
	"go_stu_gin/middleware"

	"github.com/gin-gonic/gin"
)

func ReturnRouter() *gin.Engine {
	Router := gin.Default()
	Router.Use(middleware.RequestLogger())
	v1 := Router.Group("/v1")
	{
		InitBaseRouter(v1)
		InitPublicRouter(v1)
	}
	return Router
}
